package utils;

import enumerations.AttributesEnum;

public class AttributesEnumUtils {

	public static AttributesEnum getAttributesEnumFromValue(String name) {

		AttributesEnum attribute = null;
		if (name != null) {
			name = name.toUpperCase();
			name = name.trim().replaceAll("\\s+", "_");
			return AttributesEnum.valueOf(name);
		}
		return attribute;
	}

}
